#include <stdio.h>
#include <string.h>
#include <stdarg.h>
+#include <stddef.h>
#include "queue.h"
* Common definitions. There should be no protocol or file-specific
* data in this file.
*/
+#define BASE_STRUCT(memberp, struct_type, member_name) \
+ ((struct_type *)((char *)(memberp) - offsetof(struct_type, member_name)))
/*
* way to the target.
*/
typedef struct {
- queue Q;
+ queue Q; /* Master waypoint q. Not for use
+ by modules. */
double latitude; /* Degrees */
double longitude; /* Degrees */